<%@ page import="java.util.List" %>
<%@ page import="domain.model.user.User" %>

<h2> ${title} </h2>
<br>

<div id="queryContents">
	<form method="POST" action="addsingleuser" >
		
		<table class="info">
		<tr><td>User Type:</td>
		 <td>
			<select name="userType" id="userType">
				<option value="0">Select a type</option>
				<option value="2" >Student</option>
				<option value="3" >Admin</option>
			</select>
		 </td> </tr>
		<tr><td>UserName:</td> <td><input type="text" name="userName"></td></tr>
		<tr><td>Password:</td> <td><input type="text" name="password"></td></tr>
		<tr><td>First Name:</td> <td><input type="text" name="firstName"></td></tr>
		<tr><td>Last Name:</td> <td><input type="text" name="lastName"></td></tr>
		</table>
		
		<input type="submit" class="button1" value="Add User">
	</form>
	<h3> ${added}</h3>
		<br>
		<br>
		
		<!-- 
		<table border="1" style="border-collapse: collapse;">
		
			<tr>
				<th>Upload .csv File (File Path)</th>
				<th>CSV file should be in format of sthiel,1234,Stuart,Thiel</th>
			</tr>
			<tr>
				<td><input type="file" name="uploadFile" size="200" style="width:300px;"></td>
				
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" value="AddUser"></td>
			</tr>
			
			</table>
			 -->
		
	 		 
	<form method="POST" action="adduser" enctype="multipart/form-data">
	
		<p>Or upload a CSV file with multiple users to save time. <br>
			*Note: CSV file should be in format of userName,Password,FirstName,LastName
		 </p>
		 
		 <input type="file" name="uploadFile" size="200" style="width:320px;">
		 <input type="submit" class="button1" value="Add Users from file">
		 
	</form>
	
	
</div> <!--closing queryContents -->
